package com.tecnoagrosoft.zafra.control.utils;

import android.content.Context;
import android.content.Intent;

public class UtilsConfig {


	public static final String IP_SERVER = "www.tecnoagrosoft.com";
	public static final String IP_PRUEBA = "192.168.111.1";

	// rutas
	public static final String rutaLogin = "http://" + IP_SERVER + "/apizafra/public/app/login/login";// ruta
	public static final String rutaActivo = "http://" + IP_SERVER + "/apizafra/public/app/activo/habilitado";// ruta

	// rutas sincronizar
	public static final String rutaPrimeraVez = "http://" + IP_SERVER + "/apizafra/public/app/api/primeravez";// ruta
	public static final String rutaVersion = "http://" + IP_SERVER + "/apizafra/public/app/api/version";// ruta
	public static final String rutaSincronizar = "http://" + IP_SERVER + "/apizafra/public/app/api/sincronizar";// ruta
	public static final String rutaParcela = "http://" + IP_SERVER + "/apizafra/public/app/api/parcela";// ruta
	public static final String rutaFinalizarSeguimiento = "http://" + IP_SERVER + "/apizafra/public/app/api/seguimiento";// ruta

	// rutas chicago
	public static final String rutaChicagoSoja = "http://" + IP_SERVER + "/apizafra/public/app/chicago/soja";// ruta
	public static final String rutaChicagoTrigo = "http://" + IP_SERVER + "/apizafra/public/app/chicago/trigo";// ruta
	public static final String rutaChicagoMaiz = "http://" + IP_SERVER + "/apizafra/public/app/chicago/maiz";// ruta
	public static final String rutaChicagoArroz = "http://" + IP_SERVER + "/apizafra/public/app/chicago/arroz";// ruta

	// Google Project Number
	public static final String GOOGLE_PROJECT_ID = "535176879982";
	public static final String MESSAGE_KEY = "message";

	// give your server registration url here
	// public static final String SERVER_URL =
	// "http://www.tecnoagrosoft.com/gcm_server_php/register.php";

	// Google project id
	public static final String SENDER_ID = "59154225887";
	/**
	 * Tag used on log messages.
	 */
	public static final String TAG = "ZAFRACONTROL";
	public static final String DISPLAY_MESSAGE_ACTION = "com.android.app.consultas.services.DISPLAY_MESSAGE";

	// mensaje gsm nuevo
	public static final int PLAY_SERVICES_RESOLUTION_REQUEST = 9000;

	public static final String EXTRA_MESSAGE = "message";
	public static final String PROPERTY_REG_ID = "registration_id";
	public static final String PROPERTY_APP_VERSION = "appVersion";
	public static final String PROPERTY_EXPIRATION_TIME = "onServerExpirationTimeMs";
	public static final String PROPERTY_USER = "user";

	public static final long EXPIRATION_TIME_MS = 1000 * 3600 * 24 * 7;

	/**
	 * Notifies UI to display a message.
	 * <p>
	 * This method is defined in the common helper because it's used both by the
	 * UI and the background service.
	 * 
	 * @param context
	 *            application's context.
	 * @param message
	 *            message to be displayed.
	 */
	public static void displayMessage(Context context, String message) {
		Intent intent = new Intent(DISPLAY_MESSAGE_ACTION);
		intent.putExtra(EXTRA_MESSAGE, message);
		context.sendBroadcast(intent);
	}

}
